package com.bean;


import com.imessage.type.BusinessWumaState;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import javax.persistence.*;
import java.io.Serializable;
@Getter
@Setter
@ToString
@Entity
@Table(name = "business_wuma", schema = "public")
public class BusinessWuma extends BaseModel implements Serializable {

    @ManyToOne
    @JoinColumn(name = "business_apple_id")
    private BusinessApple BusinessApple;

    @Column(name = "mac", nullable = true, length = 255)
    private String mac;

    @Column(name = "mlb", nullable = true, length = 255)
    private String mlb;

    @Column(name = "serial_num", nullable = true, length = 255)
    private String serialNum;

    @Column(name = "board_id", nullable = true, length = 255)
    private String boardId;

    @Column(name = "product_name", nullable = true, length = 255)
    private String productName;

    @Lob
    @Column(name = "config_data",nullable = true, columnDefinition="TEXT")
    private String configData;

    @Column(name = "state", nullable = true, length = 2)
    private BusinessWumaState state = BusinessWumaState.available;




}
